package cn.itsource.pethome.dictionary.service.impl;

import cn.itsource.pethome.basic.service.impl.BaseServiceImpl;
import cn.itsource.pethome.dictionary.domain.Systemdictionarydetail;
import cn.itsource.pethome.dictionary.domain.Systemdictionarytype;
import cn.itsource.pethome.dictionary.mapper.DictionarydetailMapper;
import cn.itsource.pethome.dictionary.service.IDictionarydetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DictionarydetailServiceImpl extends BaseServiceImpl<Systemdictionarydetail> implements IDictionarydetailService {
    @Autowired
    DictionarydetailMapper dictionarydetailMapper;
    @Override
    public void save(Systemdictionarydetail systemdictionarydetail) {
        if (systemdictionarydetail.getId() == null) {
            dictionarydetailMapper.save(systemdictionarydetail);
        }else{
            this.update(systemdictionarydetail);
        }
    }
}
